#!/bin/sh
macaddr=`ifconfig wlan1 | awk '/HWaddr/{ print $5 }'`

mac_ssid=`echo $macaddr| sed 's/:/-/g'`

devicetype="Pocket3"

new_ssid=${devicetype}-${mac_ssid}

echo "new ssid : ${new_ssid}"

sed -i 's/^ssid=.*/ssid='"${new_ssid}"'/' /etc/hostapd.conf
